package com.ymx.darling.type;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Time;

public class TimeHandler implements TypeHandler<Time> {
    @Override
    public Time getResult(ResultSet resultSet, int columIndex) throws SQLException {
        return resultSet.getTime(columIndex);
    }

    @Override
    public void setParameter(PreparedStatement statement, Time value, int index) throws SQLException {
        statement.setTime(index, value);
    }
}
